<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <title>${baseInfo.tableComment}基本信息</title>
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=0">
    <link rel="stylesheet" href="${ctx}/layui/css/layui.css" media="all"/>
    <link rel="stylesheet" href="${ctx}/systemStatic/style/admin.css">
    <link rel="stylesheet" href="${ctx}/iconfont/iconfont.css"/>
    <link rel="stylesheet" href="${ctx}/css/public.css">
    <script type="text/javascript">
        var __ctx = "${ctx}";
    </script>
</head>
<body>

<form class="layui-form"  requrl="<#noparse>${</#noparse>ctx}/${baseInfo.moduleName}/${baseInfo.classForPrefix}/get"style="padding: 0px 30px;width: 440px;margin-left: auto;margin-right: auto" lay-filter="${baseInfo.classForPrefix}DataForm">
    <div style="margin: 15px 0px;height: 471px;overflow: auto;">
    <#list baseInfo.columns as column>
        <div class="layui-form-item"<#if column.asFormCol == false> style="display:none;"</#if>>
            <label class="layui-form-label">${column.columnComment!}</label>
            <div class="layui-input-block">
                <input type="text" name="${column.attrNameForProperty}"  placeholder="请输入${column.columnComment!}"
                       autocomplete="off" class="layui-input <#if column.attrType?? && column.attrType == 'Date'>dateTimeFiled time-init</#if>" maxlength="50" disabled fieldname="${column.attrNameForProperty}">
            </div>
        </div>
    </#list>
    </div>
</form>

<script src="${ctx}/public/component.js" type="text/javascript"></script>
<script src="${ctx}/layui/layui.js"></script>

<script>

    layui.config({
        base: serverPath.systemPath + staticPath.systemPath //静态资源所在路径
    }).extend({
        index: 'index' //主入口模块
    }).use(['index','common','laydate','jquery'], function () {
        var laydate = layui.laydate;
        var common = layui.common;
        var $ = layui.jquery;
        var dateTimeFiledLen = $(".dateTimeFiled");
        for(var i=0;i<dateTimeFiledLen.length;i++){
            laydate.render({
                elem: dateTimeFiledLen[i] //指定元素
                ,type: 'date'
                ,trigger: 'click'
            });
        }
        var ${baseInfo.primaryKey.attrNameForProperty} = "<#noparse>${</#noparse>${baseInfo.primaryKey.attrNameForProperty}}";
        common.updateForm({
            name:'${baseInfo.classForPrefix}DataForm',
            idValue:${baseInfo.primaryKey.attrNameForProperty},
            primary:"${baseInfo.primaryKey.attrNameForProperty}",
        });
    });
</script>
</body>
</html>